<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<s:if test="@org.springside.modules.security.springsecurity.SpringSecurityUtils@getCurrentUserName() == 'anonymousUser'">
		<s:include value="/admin/login.jsp" />
</s:if> <s:else>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>静态信息编辑</title>
<style type="text/css">
.main_content{
  margin: 15px;
  border: 1px solid #ccc;
  padding: 35px;
}
.main_content .position_title{
  border-bottom: 4px solid #ccc;
  margin-bottom: 20px;
}
.main_content h4{
  width: 130px;
  padding:0 0 10px 20px;
  border-bottom: 4px solid #0066cc;
  margin-bottom: -4px;
  background: url(${ctx }/images/body_edit_icon_p.png) no-repeat;
  background-position: 0 3px\9;
  border-bottom: none\9;
}
.main_content .position_content{
  border: 1px solid #ccc;
  padding: 10px;
  word-wrap: break-word;
}
.main_content .edit{
  float: right;
  display: inline-block;
  margin-top:20px;
  width: 83px;
  text-indent: -9999px;
  height:34px;
  background: url(${ctx }/images/body_button_edit_p.png) no-repeat;
}
.main_content .edit:hover{
  background: url(${ctx }/images/body_button_edit_active_p.png) no-repeat;
}
</style>
<link href="${ctx }/css/public.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div class="main">
		<div class="tip">
      <span>所在位置 :</span>
      <span class="current_position">${category}内容展示</span> 
    </div>
    <div class="main_content clearfix">
      <div class="position_title"><h4>${category}</h4></div>
      <div class="position_content" >


               ${entity.details}
 
      </div>
      <a  href="${ctx }/admin/staticmessage-admin!edit.action?type=${type }&id=${entity.id}" target="mainFrame" class="edit">编辑</a>
    </div>
	</div>
  <script type="text/javascript" src="${ctx }/js/public.js"></script>
</body>
</html>
</s:else>